package com.ruoyi.common.core.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsResult {

    private Goods goods; //普通商品
    private PanicBuyingGoods panicBuyingGoods; //抢购商品
    private int remainBeginSeconds; //距抢购开始时间剩余的秒数
    private int remainEndSeconds; //距抢购结束时间剩余的秒数

    public GoodsResult(Goods goods, PanicBuyingGoods panicBuyingGoods) {
        this.goods = goods;
        this.panicBuyingGoods = panicBuyingGoods;
    }
}
